﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<BoardPACDSBO.Auth.LogOnModel>" %>
<%@ Import Namespace="BoardPACDSWeb.Controllers" %>
<%@ Import Namespace="BoardPACDSWeb.Lang" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <!-- Need Confirmation-->
    <meta name="description" content="BoardPAC Download Site" />
    <meta name="keywords" content="BoardPAC, BoardPACDS" />
    <meta name="author" content="IronOne Technologies (Pvt) Ltd" />
    <!-- Need Confirmation-->
    <title>
        <%= Resources.info_heading_logOnPage %>
     </title>
    <%--<link rel="SHORTCUT ICON" href="../../ContentDownloadApp/Images/favicon.ico" />--%>
    <link rel="SHORTCUT ICON" href="<%= Url.Content("~/ContentDownloadApp/Images/favicon.ico")%>" />
    <%--<link href="../../../ContentDownloadApp/CSS/stylesLogin.css" rel="Stylesheet" type="text/css" />--%>
    <link rel="stylesheet" type="text/css" href="<%= Url.Content("~/ContentDownloadApp/CSS/stylesLogin.css")%>" />
</head>

<%--do not allow to go to login page by back button--%>
<body onload="if(history.length>0)history.go(+1); return false;">
    <!-- Start logon wrapper -->
    <div id="wrapper">
        <!-- Start logon header-->
        <div id="loginheader">
            <!-- Start logon header logo -->
            <div id="headerlogo">
            </div>
            <!-- End logon header logo -->
        </div>
        <!-- End logon header-->
        <div id="loginbody">
            <% using (Html.BeginForm(null, null, FormMethod.Post))
               { %>
            <%
                   ModelState err = ViewContext.ViewData.ModelState["err"];
                   GenException result = null;

                   if (err != null)
                   {
                       result = (GenException)err.Errors.ElementAt(0).Exception;
                   }
            %>
            <!-- Start notification error message -->
            <div id="errordiv">
                <% if (err != null)
                   {%>
                        <%:result.Message%>  
                <% } %>
                <% else{ %>
                    <% if (TempData["errMsg"] != null)
                       { %>
                            <%: TempData["errMsg"] %>
                    <% } %>
                <% } %>
            </div>
            <!-- End notification error message -->
            <!-- Start transparent Box -->
            <div id="whiteboxheader">
            </div>
            <div id="transparentbox">
                <div id="whitebox">
                    <div id="inputfields">
                        <div class="labelusernamediv">
                            Username</div>
                        <div class="txtusernamediv">
                            <%: Html.TextBoxFor(m => m.UserName, new { @class = "bordernone" })%></div>
                        <div class="labelpassworddiv">
                            Password</div>
                        <div class="txtpassworddiv">
                            <%: Html.PasswordFor(m => m.Password, new { @class = "bordernone" })%></div>
                    </div>
                    <div id="inputFoot">
                        <%--<div id="remembermediv">
                            <%: Html.CheckBoxFor(m => m.RememberMe, new { id = "chk" })%>
                            <span>
                                <% = com.IronOne.BoardAppWeb.Lang.Resources.info_label_rememberMe %></span>
                        </div>--%>
                        <div id="loginbuttondiv">
                            <input type="submit" value='<% = Resources.info_btn_login %>'
                                class="button" onmouseover="this.style.cursor='hand'" />
                        </div>
                    </div>
                </div>
                <% if (ConfigurationManager.AppSettings["supportInfoFeature"].ToString() == "On")
                   { %>
                    <div id="supportDiv">
                    <% = Resources.info_supportMsg%><%: ConfigurationManager.AppSettings["supportInfoPhone"].ToString()%>
                    /
                    <%: ConfigurationManager.AppSettings["supportInfoEmail"].ToString()%>
                </div>
                <%} %>
            </div>
        </div>
        <%}%>
        <div id="footer">
            <div id="productName">
            </div>
            <div id="copyrightContainer">
                <div id="copyrightText">
                    <% = Resources.info_footer %>
                    <%--      <%: com.IronOne.BoardAppWeb.Controllers.DefaultController.getWebAppVersion()%>--%>
                    <%--     <a href="#"> Contact </a>&nbsp; |  &nbsp;<a href="#"> Terms </a> &nbsp;|  &nbsp;<a href="#"> Privacy </a>&nbsp; |&nbsp; <a href="#"> About </a>--%>
                </div>
                <div id="companyName">
                </div>
            </div>
        </div>
    </div>
    <!-- End login wrapper -->
</body>
</html>
